console.log('Executing: chrome.tabs.executeScript');

try 
{
	var div	= document.getElementById('jquery-inspector');
	
	if(div)
		document.body.removeChild(div);
}
catch(error)
{
	
}

var container	= document.createElement('div');
var script		= document.createElement('script');

container.id		= 'jquery-inspector';
script.innerHTML	= 'function ExtensionEval(){if(typeof jQuery=="function"){var a=jQuery("<div></div>");a.attr("id","extension-root");a.attr("style","display:none");var b="";for(method in jQuery.fn){b=b+","+method}b=b.substring(1);a.html(b);a.appendTo("#jquery-inspector")}else{var c=document.createElement("div");c.id="extension-root";c.style="display:none";document.getElementById("jquery-inspector").appendChild(c)}}';

container.appendChild(script);

document.body.appendChild(container);

document.location	= "javascript:ExtensionEval()";
